/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Persistencia;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author BATAQUERO
 */
@Embeddable
public class EvaluacionFinalLogrosPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_estudiante")
    private int idEstudiante;
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_supervisor")
    private int idSupervisor;

    public EvaluacionFinalLogrosPK() {
    }

    public EvaluacionFinalLogrosPK(int idEstudiante, int idSupervisor) {
        this.idEstudiante = idEstudiante;
        this.idSupervisor = idSupervisor;
    }

    public int getIdEstudiante() {
        return idEstudiante;
    }

    public void setIdEstudiante(int idEstudiante) {
        this.idEstudiante = idEstudiante;
    }

    public int getIdSupervisor() {
        return idSupervisor;
    }

    public void setIdSupervisor(int idSupervisor) {
        this.idSupervisor = idSupervisor;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idEstudiante;
        hash += (int) idSupervisor;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EvaluacionFinalLogrosPK)) {
            return false;
        }
        EvaluacionFinalLogrosPK other = (EvaluacionFinalLogrosPK) object;
        if (this.idEstudiante != other.idEstudiante) {
            return false;
        }
        if (this.idSupervisor != other.idSupervisor) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Persistencia.EvaluacionFinalLogrosPK[ idEstudiante=" + idEstudiante + ", idSupervisor=" + idSupervisor + " ]";
    }
    
}
